#pragma once

#include "Arrow.h"
#include "Enemy.h"

#define LINE_OF_SIGHT		80.0f

class RangeEnemy : public Enemy{
public:
	enum STATE { ATTACK, IDLE };
private:
	Arrow *newArrow;

	vector<Arrow *> ArrowList;

	STATE curState, newState;

	bool attackStart, attackTime, idleTime;

	void CreateArrow(void);

	void Idle(void);
	void Attack(void);
public:
	RangeEnemy(void);
	~RangeEnemy(void);

	void RenderObject(void);

	void DropItemOnDeath(vector<PickUp *> *PickUpList);
	bool UpdateObject(Vector3D offset, float elapsed);
};